﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EECMISWS
{
    /// <summary>
    /// 预约申请信息
    /// </summary>
    public class AppointmentApplyInfo
    {
        /// <summary>
        /// 中文姓名
        /// </summary>
        public string zwxm { get; set; }

        /// <summary>
        /// 身份证号
        /// </summary>
        public string sfzh { get; set; }

        /// <summary>
        /// 职业
        /// </summary>
        public string zy { get; set; }

        /// <summary>
        /// 前往地
        /// </summary>
        public string qwd { get; set; }

        /// <summary>
        /// 出境事由
        /// </summary>
        public string cjsy { get; set; }

        /// <summary>
        /// 信息来源
        /// </summary>
        public string xxly { get; set; }
        /// <summary>
        /// 受理业务编号
        /// </summary>
        public string ywbh { get; set; }
        /// <summary>
        ///  申请类别
        /// </summary>
        public string sqlb { get; set; }
        /// <summary>
        /// 办证类别
        /// </summary>
        public string bzlb { get; set; }
        /// <summary>
        /// 本人联系电话
        /// </summary>
        public string lxdh { get; set; }    

        /// <summary>
        /// 是否需特快专递
        /// </summary>
        public string sfxtkzd { get; set; }

        /// <summary>
        /// 收件人
        /// </summary>
        public string sjr { get; set; }
        /// <summary>
        /// EMS收件地址
        /// </summary>
        public string emsdz { get; set; }

        /// <summary>
        /// 邮政编码
        /// </summary>
        public string yzbm { get; set; }

        /// <summary>
        /// 收件联系电话
        /// </summary>
        public string sjhm { get; set; }
        /// <summary>
        /// 申请业务编号
        /// </summary>
        public string sqh { get; set; }

        /// <summary>
        /// 申请日期
        /// </summary>
        public string slrq { get; set; }

        /// <summary>
        /// 受理单位
        /// </summary>
        public string sldw { get; set; }
        /// <summary>
        /// 填表单位编号
        /// </summary>
        public string tbdwbh { get; set; }
        /// <summary>
        /// 紧急联系人电话
        /// </summary>
        public string jjqklxr { get; set; }
        /// <summary>
        /// 紧急联系人电话
        /// </summary>
        public string jjqklxrdh { get; set; }
        /// <summary>
        /// 是否需要新证
        /// </summary>
        public string sfxxz { get; set; }
        /// <summary>
        /// 是否需要签注
        /// </summary>
        public string sfxqz { get; set; }  

        public bool IsValid
        {
            get 
            {
                if (string.IsNullOrEmpty(sqlb)
                   || string.IsNullOrEmpty(sqh)
                   || string.IsNullOrEmpty(ywbh))
                {
                    return false;
                }
                if (sqlb != "101" && sqlb != "102" && sqlb != "104")
                {
                    return false;
                }              
                return true;
            }
        }

    }
}
